//
//  MyScoreDetailViewController.m
//  wtshoppingcite
//
//  Created by TW on 14-10-24.
//  Copyright (c) 2014年 TW. All rights reserved.
//

#import "MyScoreDetailViewController.h"
#import "AppDelegate.h"

@interface MyScoreDetailViewController ()

@property(nonatomic,strong)UIWebView *webView;

@end

@implementation MyScoreDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self setTitleView:@"积分商城"];
    
    _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, kWidth, [UIScreen mainScreen].bounds.size.height)];
    [self.view addSubview:_webView];
    //解析HTML
    [self setHtmlPageContent];
    
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    ;
}


- (void)viewWillDisappear:(BOOL)animated
{
    
    [super viewWillDisappear:animated];
    
    
}

-(void)setHtmlPageContent{
    
    
    NSURL *url = [NSURL URLWithString:@"http://zhuzher.vanke.com/uip/interface/scoreDescription.htm;"];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [_webView loadRequest:request];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
